package com.zhanghe.study.design_pattern.observer_pattern;

/**
 * @author zh
 * @date 2022/10/13 14:28
 */
public class ConcreteSubject extends Subject{

    private int state;

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
        this.notifyObservers();
    }
}
